﻿using System;
using System.Collections.Generic;
using UnityEngine;

// Token: 0x0200022D RID: 557
public class CullBoxHide : MonoBehaviour
{
	// Token: 0x06000BB2 RID: 2994 RVA: 0x00060F18 File Offset: 0x0005F118
	private void Start()
	{
		foreach (GameObject gameObject in this.Object)
		{
			gameObject.SetActive(true);
		}
	}

	// Token: 0x06000BB3 RID: 2995 RVA: 0x00060F74 File Offset: 0x0005F174
	private void OnTriggerEnter(Collider other)
	{
		if (other == this.Collider)
		{
			foreach (GameObject gameObject in this.Object)
			{
				gameObject.SetActive(false);
			}
		}
	}

	// Token: 0x06000BB4 RID: 2996 RVA: 0x00060FE4 File Offset: 0x0005F1E4
	private void OnTriggerExit(Collider other)
	{
		if (other == this.Collider)
		{
			foreach (GameObject gameObject in this.Object)
			{
				gameObject.SetActive(true);
			}
		}
	}

	// Token: 0x040010DF RID: 4319
	public List<GameObject> Object;

	// Token: 0x040010E0 RID: 4320
	public Collider Collider;
}
